@layout("/common/_container.html",{js:["/assets/manager/archiveInfo/info.js","/assets/manager/archiveInfo/files.js","/assets/manager/archiveInfo/archiveInfo_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">录入</span>
</div>

<div class="layui-fluid" style="background: white;">

    <div class="layui-collapse">
        <div class="layui-colla-item">
            <h2 class="layui-colla-title">档案信息录入</h2>
            <div class="layui-colla-content layui-show">
                <form id="archiveInfoForm" lay-filter="archiveInfoForm"
                      class="layui-form layui-form-pane" style="max-width:900px;margin: 20px auto;">
                    <input name="id" type="hidden"/>
                    <input name="dahid" id="dahid" type="hidden"/>
                    <div class="layui-form-item layui-row layui-col-space18">

                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">卷宗号</label>
                            <div class="layui-input-block">
                                <input id="wjid" name="wjid" placeholder="请输入卷宗号" type="text"
                                       class="layui-input"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">档案名称<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <input id="mc" name="mc" placeholder="请输入档案名称" type="text" class="layui-input"
                                       lay-verify="required" required/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">档案类型<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <#tree name="dalx" url="/archiveDic/listTypeDict"/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md3">
                            <label class="layui-form-label">密级<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <#dic name="mj" dic="SECRETS_LEVEL"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md3">

                            <label class="layui-form-label">来源<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <#dic name="ly" dic="ARCHIVE_SOURCE"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">档案盒<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <#tree name="dag" url="/archiveDic/archiveBox" linkage="true"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">所属部门<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <#tree name="ssbmid"
                                url="/archiveDic/commonTree?table=sys_dept&id=dept_id&parentId=pid&startId=0&text=full_name"/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">所属人名称<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <input id="ssrrmc" name="ssrrmc" placeholder="请输入所属人名称" type="text"
                                       class="layui-input" lay-verify="required" required/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">管理年限<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <#dic name="glnx" dic="LIMIT_YEAR"/>

                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">年度<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <#dic name="nd" dic="ARCHIVE_YEAR"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">起始年度<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <#dic name="qsnd" dic="ARCHIVE_YEAR"/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">结束年度<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <#dic name="jsnd" dic="ARCHIVE_YEAR"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">备注</label>
                            <div class="layui-input-block">
                                <input id="bz" name="bz" placeholder="请输入备注" type="text" class="layui-input"/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12">
                            <div class="layui-input-block">
                                <button id="btnSubmit" class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;
                                </button>
                                <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;
                                </button>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
        </div>

        <div id="twoTable" class="layui-colla-item layui-hide">
            <h2 class="layui-colla-title">所属档案资料录入</h2>
            <div class="layui-colla-content layui-show layui-row layui-col-space10">
                <div class="layui-col-md7 layui-col-lg7">
                    <table class="layui-table" id="info" lay-filter="info"></table>
                </div>

                <div class="layui-col-md5 layui-col-lg5">
                    <table class="layui-table" id="file" lay-filter="file"></table>
                </div>
            </div>

        </div>
    </div>
</div>
</div>


<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-xs" lay-event="add">新增</button>
    </div>
</script>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>


<#dic_templet id="dalx" dic="ARCHIVE_TYPE" value="d.dalx"/>
<#dic_templet id="glnx" dic="LIMIT_YEAR" value="d.glnx"/>
<#dic_templet id="sfyx" dic="YESNO" value="d.sfyx"/>
<#dic_templet id="ly" dic="ARCHIVE_SOURCE" value="d.ly"/>
<#dic_templet id="mj" dic="SECRETS_LEVEL" value="d.mj"/>

@}